﻿using UnityEngine;
using System.Collections;
using GMBase.Lua;

public class Game : MonoBehaviour {

    public static string GameObjectName = "Game";

    /// <summary>
    /// 这里初始化全局管理器
    /// </summary>
    void Awake()
    {
    }

    private void InitLua()
    {
        LuaFileMgr.me.bUseResource = true;
        LuaFileMgr.me.Init();

        // lua里面需要使用的，先初始化一下，否则会报错
        var init = LuaMidInterface.windowMgr;


        LuaEngine.me.Init();
    }

	// Use this for initialization
    void Start()
    {
        InitLua();

        LuaGame.GameStart();
	}
	
	// Update is called once per frame
	void Update () {
        //LuaGame.GameUpdate();
	}
}
